package io.gitee.sfch.chunmi.entity;

import com.mybatisflex.annotation.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 租户不可变实体，包含租户id
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TenantImmutableEntity extends ImmutableEntity {

    /**
     * 租户id
     */
    @Column(tenantId = true)
    private Long tenantId;

    /**
     * 租户名称，系统自动根据主键获取其值
     */
    @Column(ignore = true)
    private String tenantName;
}
